package com.fs.config;


import org.springframework.boot.CommandLineRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.config.server.EnableConfigServer;

@EnableConfigServer
@EnableDiscoveryClient
@SpringBootApplication
public class FSConfigServerApplication implements CommandLineRunner {


    public static void main(String[] args) throws Exception{
        SpringApplication app = new SpringApplication(FSConfigServerApplication.class);
        app.run(args);
    }

    //程序首次启动调用
    public void run(String... strings) throws Exception {
        System.out.println("config-server Boot Successfully");
    }
}
